package cool.houge.pig.service.webhook;

import lombok.Builder;
import lombok.Value;

/**
 * Webhook 请求参数.
 *
 * @author KK (kzou227@qq.com)
 */
@Value
@Builder
public class WebhookInput {

  private WebhookType type;
  private Metadata metadata;
  private Body body;

  @Value
  @Builder
  public static class Metadata {

    /** 客户端IP. */
    private String clientIp;
  }

  /** 请求主体内容. */
  @Value
  @Builder
  public static class Body {

    /** 用户ID. */
    private Long uid;
    /** 客户端登录ID. */
    private String clientId;
  }
}
